package com.pacy.pacybaseproject.adapters;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pacy.pacybaseproject.R;
import com.pacy.pacybaseproject.beans.HomeMsgBean;

/**
 * @author PACY
 * @date 2024/1/3
 * description:
 */
public class HomeActivityAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public HomeActivityAdapter() {
        super(R.layout.home_activity_item_view);
    }

    @Override
    protected void convert(BaseViewHolder holder, String s) {
        switch (holder.getAbsoluteAdapterPosition()){
            case 0:
                holder.setImageResource(R.id.img_iv,R.drawable.delete_home_ac_1_langfang);
                break;
            case 1:
                holder.setImageResource(R.id.img_iv,R.drawable.delete_home_ac_2);
                break;
            case 2:
                holder.setImageResource(R.id.img_iv,R.drawable.delete_home_ac_3);
                break;
        }
    }
}
